﻿using System;
using System.Windows.Media;

namespace DotNetUI.Models
{
    /// <summary>
    /// HSB颜色
    /// </summary>
    public class Hsb
    {
        private double hue;
        /// <summary>
        /// 色相
        /// </summary>
        public double Hue
        {
            get => hue; set
            {
                value = value % 360;
                hue = value;
            }
        }
        /// <summary>
        /// 饱和度
        /// </summary>
        public float Saturation { get; set; }
        /// <summary>
        /// 亮度
        /// </summary>
        public float Brightness { get; set; }
    }
}
